<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>Document</title>
  <link rel="stylesheet" href="../../css/member/Recommend.css">
  <link rel="stylesheet" href="../../css/public/base.css">
  <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
  <script src="../../js/public/jquery-3.3.1.js"></script>
</head>
<style>
  .nav_two .left>ul>li:nth-last-of-type(1) {
    background-color: #e5f1fc;
  }

    .nav_two {
        margin-right: 20px;
        height: 100%;
        color: #666;
    }

    .nav_two .left {

        /* text-align: center; */
        /* border: 1px solid #000; */
        background-color: #FFF;
        height: 100%;
        border-radius: 8px;
        font-size: 16px;
        width: 200px;
    }

    .nav_two .left>ul li {
        min-height: 53px;
        line-height: 53px;
        list-style-type: none;
        position: relative;
        cursor: pointer;

    }

    .nav_two .left>ul li a {
        position: absolute;
        height: 100%;
        width: 100%;
    }

    .nav_two .left>ul li ul {
        transition: all 0.2s;
        max-height: 0;
        overflow: hidden;
        /* display: none; */
    }

    .nav_two .left>ul li ul li {
        min-height: 53px;
    }

    .nav_two .left>ul li img {
        position: relative;
        left: 30px;
        transition: all 0.2s;
        transform: rotate(180deg)
    }

    .nav_two .active {
        background-color: #e5f1fc;
    }

    .nav_two .left>ul li .bbx {
        max-height: 300px;
    }

    .rotate {
        transform: rotate(0deg)!important;
    }

    .xia ul li{
      padding-left: 20px;
      font-size: 15px;
    }
</style>

<body>
   
  <form class="layui-form" action="">
    <div class="main" >
      <div class="left">
          <div class='nav_two'>
            <div class="left">
              <ul>
                <li><span class="circle"></span><a href="../member/MemberManagement.html"></a>会员管理</li>
                <li><span class="circle"></span><a href="../member/mailbox.html"></a>会员信箱</li>
                <li class='xia'>
                  <span class='xiaspan'><span class="circle"></span>交易额管理 <img src="../../image/xiala.png" alt=""></span>
  
                  <ul>
                    <li><a href="../../html/member/DealImport.html"></a><span class="circle"></span>交易额导入</li>
                    <li><a href="../../html/member/record .html"></a><span class="circle"></span>交易额记录</li>
                  </ul>
                </li>
                <li><span class="circle"></span><a href="../member/Upgrade.html"></a>用户升级记录</li>
                <li><span class="circle"></span><a href="../member/Recommend.html"></a>推荐图谱</li>
              </ul>
            </div>
          </div>
      </div>
      <div class="right">
        <div class="top">
          <div class="layui-form-item">
            <div class="layui-inline">
              <input type="text" style="width:196px;" placeholder="请输入…" class="layui-input">
            </div>
            <div class="layui-inline">
              <button class="layui-btn btnStyle" lay-submit="" lay-filter="demo1">搜索</button>
            </div>
          </div>
        </div>
        <div class="button">
          <div id="menuTree" class="menuTree"></div>
        </div>
      </div>
    </div>
  </form>
  <script src="../../layui/layui.js"></script>
  <script>
    var t = document.querySelector.bind(document)
    let flag = localStorage.getItem('twonav')
    if (flag == '1') {
      t('.xia>ul').classList.add('bbx')
      t('.xia img').classList.add('rotate')
    }
    t('.xiaspan').onclick = function () {
      flag = flag == 0 ? 1 : 0
      t('.xia>ul').classList.toggle('bbx')
      t('.xia img').classList.toggle('rotate')
      localStorage.setItem('twonav', flag)
    }
  </script>
  <script src='../../js/member/member.js'></script>
  <script>
    layui.use('element', function () {
      var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

      //监听导航点击
      element.on('nav(demo)', function (elem) {
        //console.log(elem)
        layer.msg(elem.text());
      });
    });
  </script>
  <script>
    var json = [{
      "id": 1,
      "parentId": 0,
      "loginName": "admin",
      "type": null,
      "introduceCode": "",
      "password": "DCasfBdggpo=",
      "trueName": "管理员1",
      "idCard": null,
      "gender": 0,
      "phone": "13327829852",
      "isFreeze": 0,
      "isAlive": 1,
      "memberLevel": null,
      "groupLevel": "PR",
      "selfAchievement": 0,
      "groupAchievement": 68405,
      "depAchievement": 48211,
      "dealNum": 0,
      "dealNumCreate": 0,
      "registerTime": "2018-11-11 20:11:36",
      "updateTime": null,
      "bank": null,
      "bankNo": null,
      "openBank": null,
      "gainAddress": null,
      "reCastBalance": 0.72,
      "rewardBalance": 141.87,
      "usdtBalance": null,
      "aliveTime": null,
      "adminRoleId": null,
      "bwAccount": "12345688888",
      "bwBind": 1,
      "rwAccount": "123456",
      "rwBind": 1,
      "exchangeAccount": "1",
      "exchangeBind": 1,
      "newPassword": null,
      "memberList": [
        {
          "id": 2,
          "parentId": 2,
          "loginName": "Hameln",
          "type": null,
          "introduceCode": "admin",
          "password": null,
          "trueName": "铁哥",
          "idCard": "320124",
          "gender": 0,
          "phone": "13016980502",
          "isFreeze": 0,
          "isAlive": 1,
          "memberLevel": 0,
          "groupLevel": "SDR",
          "selfAchievement": 11,
          "groupAchievement": 26871,
          "depAchievement": 21097,
          "dealNum": 3000,
          "dealNumCreate": 0,
          "registerTime": "2018-11-12 20:11:36",
          "updateTime": null,
          "bank": "成都银行",
          "bankNo": "123456",
          "openBank": "vrv银行",
          "gainAddress": "南京",
          "reCastBalance": 599.15,
          "rewardBalance": 50,
          "usdtBalance": null,
          "aliveTime": null,
          "adminRoleId": null,
          "bwAccount": "1598931959@qq.com",
          "bwBind": 1,
          "rwAccount": "1598931959@qq.com",
          "rwBind": 1,
          "exchangeAccount": "15651896010",
          "exchangeBind": 1,
          "newPassword": null,
          "memberList": [
            {
              "id": 6,
              "parentId": 6,
              "loginName": "TYB8988",
              "type": null,
              "introduceCode": "Hameln",
              "password": null,
              "trueName": "陶雨兵",
              "idCard": "320124",
              "gender": 1,
              "phone": "18362828985",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 4,
              "groupLevel": "DR",
              "selfAchievement": 0,
              "groupAchievement": 20194,
              "depAchievement": 16774,
              "dealNum": 3300,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 4.71,
              "rewardBalance": 11.24,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [
                {
                  "id": 14,
                  "parentId": 14,
                  "loginName": "zz9386",
                  "type": null,
                  "introduceCode": "TYB8988",
                  "password": null,
                  "trueName": "钟英碧",
                  "idCard": "320124",
                  "gender": 1,
                  "phone": "18362822357",
                  "isFreeze": 0,
                  "isAlive": 1,
                  "memberLevel": 4,
                  "groupLevel": "SMR",
                  "selfAchievement": 0,
                  "groupAchievement": 5774,
                  "depAchievement": 5774,
                  "dealNum": 3200,
                  "dealNumCreate": 0,
                  "registerTime": "2018-11-12 20:11:36",
                  "updateTime": null,
                  "bank": null,
                  "bankNo": null,
                  "openBank": null,
                  "gainAddress": null,
                  "reCastBalance": 3.24,
                  "rewardBalance": 7.54,
                  "usdtBalance": null,
                  "aliveTime": null,
                  "adminRoleId": null,
                  "bwAccount": null,
                  "bwBind": null,
                  "rwAccount": null,
                  "rwBind": null,
                  "exchangeAccount": "1",
                  "exchangeBind": null,
                  "newPassword": null,
                  "memberList": [
                    {
                      "id": 17,
                      "parentId": 17,
                      "loginName": "fzy761231",
                      "type": null,
                      "introduceCode": "zz9386",
                      "password": null,
                      "trueName": "冯智勇",
                      "idCard": "320124",
                      "gender": 0,
                      "phone": "18362821238",
                      "isFreeze": 0,
                      "isAlive": 1,
                      "memberLevel": 1,
                      "groupLevel": "SDR",
                      "selfAchievement": 2354,
                      "groupAchievement": 2354,
                      "depAchievement": 2354,
                      "dealNum": 6500,
                      "dealNumCreate": 0,
                      "registerTime": "2018-11-12 20:11:36",
                      "updateTime": null,
                      "bank": null,
                      "bankNo": null,
                      "openBank": null,
                      "gainAddress": null,
                      "reCastBalance": 0.15,
                      "rewardBalance": 0.62,
                      "usdtBalance": null,
                      "aliveTime": null,
                      "adminRoleId": null,
                      "bwAccount": null,
                      "bwBind": null,
                      "rwAccount": null,
                      "rwBind": null,
                      "exchangeAccount": "1",
                      "exchangeBind": null,
                      "newPassword": null,
                      "memberList": [],
                      "parentMember": null,
                      "memberLevelString": "一星会员",
                      "isAliveString": "已激活",
                      "isFreezeString": "未冻结",
                      "pageNum": null,
                      "pageSize": null,
                      "offset": null,
                      "loginTime": null,
                      "code": null,
                      "usdtPickUpAddress": null,
                      "emailAddress": null,
                      "lastSelfAchievement": null,
                      "lastGroupAchievement": null,
                      "lastDepAchievement": null
                    },
                    {
                      "id": 18,
                      "parentId": 18,
                      "loginName": "zlz88888",
                      "type": null,
                      "introduceCode": "zz9386",
                      "password": null,
                      "trueName": "周礼志",
                      "idCard": "320124",
                      "gender": 0,
                      "phone": "18362822342",
                      "isFreeze": 0,
                      "isAlive": 1,
                      "memberLevel": 3,
                      "groupLevel": "MR",
                      "selfAchievement": 0,
                      "groupAchievement": 3420,
                      "depAchievement": 3420,
                      "dealNum": 7600,
                      "dealNumCreate": 0,
                      "registerTime": "2018-11-12 20:11:36",
                      "updateTime": null,
                      "bank": null,
                      "bankNo": null,
                      "openBank": null,
                      "gainAddress": null,
                      "reCastBalance": 1.92,
                      "rewardBalance": 4.46,
                      "usdtBalance": null,
                      "aliveTime": null,
                      "adminRoleId": null,
                      "bwAccount": null,
                      "bwBind": null,
                      "rwAccount": null,
                      "rwBind": null,
                      "exchangeAccount": "1",
                      "exchangeBind": null,
                      "newPassword": null,
                      "memberList": [
                        {
                          "id": 19,
                          "parentId": 19,
                          "loginName": "shu15059",
                          "type": null,
                          "introduceCode": "zlz88888",
                          "password": null,
                          "trueName": "舒波",
                          "idCard": "320124",
                          "gender": 0,
                          "phone": "18362824534",
                          "isFreeze": 0,
                          "isAlive": 1,
                          "memberLevel": 2,
                          "groupLevel": "",
                          "selfAchievement": 3420,
                          "groupAchievement": 3420,
                          "depAchievement": 3420,
                          "dealNum": 8700,
                          "dealNumCreate": 0,
                          "registerTime": "2018-11-12 20:11:36",
                          "updateTime": null,
                          "bank": null,
                          "bankNo": null,
                          "openBank": null,
                          "gainAddress": null,
                          "reCastBalance": 1.01,
                          "rewardBalance": 2.1,
                          "usdtBalance": null,
                          "aliveTime": null,
                          "adminRoleId": null,
                          "bwAccount": null,
                          "bwBind": null,
                          "rwAccount": null,
                          "rwBind": null,
                          "exchangeAccount": "1",
                          "exchangeBind": null,
                          "newPassword": null,
                          "memberList": [],
                          "parentMember": null,
                          "memberLevelString": "二星会员",
                          "isAliveString": "已激活",
                          "isFreezeString": "未冻结",
                          "pageNum": null,
                          "pageSize": null,
                          "offset": null,
                          "loginTime": null,
                          "code": null,
                          "usdtPickUpAddress": null,
                          "emailAddress": null,
                          "lastSelfAchievement": null,
                          "lastGroupAchievement": null,
                          "lastDepAchievement": null
                        }
                      ],
                      "parentMember": null,
                      "memberLevelString": "三星会员",
                      "isAliveString": "已激活",
                      "isFreezeString": "未冻结",
                      "pageNum": null,
                      "pageSize": null,
                      "offset": null,
                      "loginTime": null,
                      "code": null,
                      "usdtPickUpAddress": null,
                      "emailAddress": null,
                      "lastSelfAchievement": null,
                      "lastGroupAchievement": null,
                      "lastDepAchievement": null
                    }
                  ],
                  "parentMember": null,
                  "memberLevelString": "四星会员",
                  "isAliveString": "已激活",
                  "isFreezeString": "未冻结",
                  "pageNum": null,
                  "pageSize": null,
                  "offset": null,
                  "loginTime": null,
                  "code": null,
                  "usdtPickUpAddress": null,
                  "emailAddress": null,
                  "lastSelfAchievement": null,
                  "lastGroupAchievement": null,
                  "lastDepAchievement": null
                },
                {
                  "id": 15,
                  "parentId": 15,
                  "loginName": "zh15683889333",
                  "type": null,
                  "introduceCode": "TYB8988",
                  "password": null,
                  "trueName": "张红",
                  "idCard": "320124",
                  "gender": 1,
                  "phone": "18362822235",
                  "isFreeze": 0,
                  "isAlive": 1,
                  "memberLevel": 3,
                  "groupLevel": "",
                  "selfAchievement": 4570,
                  "groupAchievement": 4570,
                  "depAchievement": 4570,
                  "dealNum": 4300,
                  "dealNumCreate": 0,
                  "registerTime": "2018-11-12 20:11:36",
                  "updateTime": null,
                  "bank": "vrv银行",
                  "bankNo": "11111",
                  "openBank": "vrv银行111",
                  "gainAddress": null,
                  "reCastBalance": 0,
                  "rewardBalance": 10000,
                  "usdtBalance": null,
                  "aliveTime": null,
                  "adminRoleId": null,
                  "bwAccount": null,
                  "bwBind": null,
                  "rwAccount": null,
                  "rwBind": null,
                  "exchangeAccount": "1",
                  "exchangeBind": null,
                  "newPassword": null,
                  "memberList": [],
                  "parentMember": null,
                  "memberLevelString": "三星会员",
                  "isAliveString": "已激活",
                  "isFreezeString": "未冻结",
                  "pageNum": null,
                  "pageSize": null,
                  "offset": null,
                  "loginTime": null,
                  "code": null,
                  "usdtPickUpAddress": null,
                  "emailAddress": null,
                  "lastSelfAchievement": null,
                  "lastGroupAchievement": null,
                  "lastDepAchievement": null
                },
                {
                  "id": 16,
                  "parentId": 16,
                  "loginName": "qyh1223",
                  "type": null,
                  "introduceCode": "TYB8988",
                  "password": null,
                  "trueName": "卿永红",
                  "idCard": "320124",
                  "gender": 1,
                  "phone": "18362821265",
                  "isFreeze": 0,
                  "isAlive": 1,
                  "memberLevel": 4,
                  "groupLevel": "SMR",
                  "selfAchievement": 9850,
                  "groupAchievement": 9850,
                  "depAchievement": 9850,
                  "dealNum": 5400,
                  "dealNumCreate": 0,
                  "registerTime": "2018-11-12 20:11:36",
                  "updateTime": null,
                  "bank": "vrv银行",
                  "bankNo": "22222",
                  "openBank": "vrv银行111",
                  "gainAddress": null,
                  "reCastBalance": 0,
                  "rewardBalance": 20000,
                  "usdtBalance": null,
                  "aliveTime": null,
                  "adminRoleId": null,
                  "bwAccount": null,
                  "bwBind": null,
                  "rwAccount": null,
                  "rwBind": null,
                  "exchangeAccount": "1",
                  "exchangeBind": null,
                  "newPassword": null,
                  "memberList": [],
                  "parentMember": null,
                  "memberLevelString": "四星会员",
                  "isAliveString": "已激活",
                  "isFreezeString": "未冻结",
                  "pageNum": null,
                  "pageSize": null,
                  "offset": null,
                  "loginTime": null,
                  "code": null,
                  "usdtPickUpAddress": null,
                  "emailAddress": null,
                  "lastSelfAchievement": null,
                  "lastGroupAchievement": null,
                  "lastDepAchievement": null
                }
              ],
              "parentMember": null,
              "memberLevelString": "四星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            },
            {
              "id": 7,
              "parentId": 7,
              "loginName": "ZP8988",
              "type": null,
              "introduceCode": "Hameln",
              "password": null,
              "trueName": "赵萍",
              "idCard": "320124",
              "gender": 0,
              "phone": "18362825778",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 1,
              "groupLevel": "",
              "selfAchievement": 6666,
              "groupAchievement": 6666,
              "depAchievement": 6666,
              "dealNum": 4400,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": 1,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "一星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            },
            {
              "id": 118,
              "parentId": 118,
              "loginName": "yuzhibo2",
              "type": null,
              "introduceCode": "Hameln",
              "password": null,
              "trueName": "宇智波金星",
              "idCard": "3201241994",
              "gender": 1,
              "phone": "13016980506",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 0,
              "groupLevel": null,
              "selfAchievement": 0,
              "groupAchievement": 0,
              "depAchievement": 0,
              "dealNum": 0,
              "dealNumCreate": 0,
              "registerTime": "2018-12-04 19:22:20",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": 0,
              "aliveTime": "2018-12-13 10:00:34",
              "adminRoleId": 0,
              "bwAccount": null,
              "bwBind": 0,
              "rwAccount": null,
              "rwBind": 0,
              "exchangeAccount": null,
              "exchangeBind": 0,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "普通会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            }
          ],
          "parentMember": null,
          "memberLevelString": "普通会员",
          "isAliveString": "已激活",
          "isFreezeString": "未冻结",
          "pageNum": null,
          "pageSize": null,
          "offset": null,
          "loginTime": "2018-12-06 14:31:46",
          "code": null,
          "usdtPickUpAddress": null,
          "emailAddress": null,
          "lastSelfAchievement": null,
          "lastGroupAchievement": null,
          "lastDepAchievement": null
        },
        {
          "id": 3,
          "parentId": 3,
          "loginName": "violet851011",
          "type": null,
          "introduceCode": "admin",
          "password": null,
          "trueName": "郑秋益",
          "idCard": "320124",
          "gender": 1,
          "phone": "18362824884",
          "isFreeze": 0,
          "isAlive": 1,
          "memberLevel": 1,
          "groupLevel": "MR",
          "selfAchievement": 5000,
          "groupAchievement": 21665,
          "depAchievement": 21665,
          "dealNum": 4000,
          "dealNumCreate": 0,
          "registerTime": "2018-11-12 20:11:36",
          "updateTime": null,
          "bank": null,
          "bankNo": null,
          "openBank": null,
          "gainAddress": null,
          "reCastBalance": 400,
          "rewardBalance": 400,
          "usdtBalance": null,
          "aliveTime": null,
          "adminRoleId": null,
          "bwAccount": null,
          "bwBind": null,
          "rwAccount": null,
          "rwBind": null,
          "exchangeAccount": "1",
          "exchangeBind": null,
          "newPassword": null,
          "memberList": [
            {
              "id": 8,
              "parentId": 8,
              "loginName": "FM8988",
              "type": null,
              "introduceCode": "violet851011",
              "password": null,
              "trueName": "方敏",
              "idCard": "320124",
              "gender": 0,
              "phone": "18362821234",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 1,
              "groupLevel": "MR",
              "selfAchievement": 7777,
              "groupAchievement": 7777,
              "depAchievement": 7777,
              "dealNum": 5500,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "一星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            },
            {
              "id": 9,
              "parentId": 9,
              "loginName": "dcr99jy",
              "type": null,
              "introduceCode": "violet851011",
              "password": null,
              "trueName": "蒋园",
              "idCard": "320124",
              "gender": 1,
              "phone": "18362820956",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 2,
              "groupLevel": "SMR",
              "selfAchievement": 8888,
              "groupAchievement": 8888,
              "depAchievement": 8888,
              "dealNum": 6600,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "二星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            }
          ],
          "parentMember": null,
          "memberLevelString": "一星会员",
          "isAliveString": "已激活",
          "isFreezeString": "未冻结",
          "pageNum": null,
          "pageSize": null,
          "offset": null,
          "loginTime": null,
          "code": null,
          "usdtPickUpAddress": null,
          "emailAddress": null,
          "lastSelfAchievement": null,
          "lastGroupAchievement": null,
          "lastDepAchievement": null
        },
        {
          "id": 4,
          "parentId": 4,
          "loginName": "zxw123",
          "type": null,
          "introduceCode": "admin",
          "password": null,
          "trueName": "赵雪维",
          "idCard": "320124",
          "gender": 1,
          "phone": "18362825648",
          "isFreeze": 0,
          "isAlive": 1,
          "memberLevel": 2,
          "groupLevel": "SMR",
          "selfAchievement": 4000,
          "groupAchievement": 12990,
          "depAchievement": 12990,
          "dealNum": 5000,
          "dealNumCreate": 0,
          "registerTime": "2018-11-12 20:11:36",
          "updateTime": null,
          "bank": null,
          "bankNo": null,
          "openBank": null,
          "gainAddress": null,
          "reCastBalance": 0,
          "rewardBalance": 0,
          "usdtBalance": null,
          "aliveTime": null,
          "adminRoleId": null,
          "bwAccount": null,
          "bwBind": null,
          "rwAccount": null,
          "rwBind": null,
          "exchangeAccount": "1",
          "exchangeBind": null,
          "newPassword": null,
          "memberList": [
            {
              "id": 10,
              "parentId": 10,
              "loginName": "LW2012",
              "type": null,
              "introduceCode": "zxw123",
              "password": null,
              "trueName": "刘雯",
              "idCard": "320124",
              "gender": 0,
              "phone": "18362822434",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 3,
              "groupLevel": "SDR",
              "selfAchievement": 4444,
              "groupAchievement": 4444,
              "depAchievement": 4444,
              "dealNum": 7700,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0.15,
              "rewardBalance": 0.62,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "三星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            },
            {
              "id": 11,
              "parentId": 11,
              "loginName": "gmf8988",
              "type": null,
              "introduceCode": "zxw123",
              "password": null,
              "trueName": "顾梦凡",
              "idCard": "320124",
              "gender": 1,
              "phone": "18362826753",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 4,
              "groupLevel": "",
              "selfAchievement": 4546,
              "groupAchievement": 4546,
              "depAchievement": 4546,
              "dealNum": 8800,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "四星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            }
          ],
          "parentMember": null,
          "memberLevelString": "二星会员",
          "isAliveString": "已激活",
          "isFreezeString": "未冻结",
          "pageNum": null,
          "pageSize": null,
          "offset": null,
          "loginTime": "2018-12-03 11:26:37",
          "code": null,
          "usdtPickUpAddress": null,
          "emailAddress": null,
          "lastSelfAchievement": null,
          "lastGroupAchievement": null,
          "lastDepAchievement": null
        },
        {
          "id": 5,
          "parentId": 5,
          "loginName": "SJZ8988",
          "type": null,
          "introduceCode": "admin",
          "password": null,
          "trueName": "钟志强",
          "idCard": "320124",
          "gender": 0,
          "phone": "18362822354",
          "isFreeze": 0,
          "isAlive": 1,
          "memberLevel": 3,
          "groupLevel": "SDR",
          "selfAchievement": 0,
          "groupAchievement": 6879,
          "depAchievement": 6879,
          "dealNum": 6000,
          "dealNumCreate": 0,
          "registerTime": "2018-11-12 20:11:36",
          "updateTime": null,
          "bank": null,
          "bankNo": null,
          "openBank": null,
          "gainAddress": null,
          "reCastBalance": 1000,
          "rewardBalance": 1000,
          "usdtBalance": null,
          "aliveTime": null,
          "adminRoleId": null,
          "bwAccount": null,
          "bwBind": null,
          "rwAccount": null,
          "rwBind": null,
          "exchangeAccount": "1",
          "exchangeBind": null,
          "newPassword": null,
          "memberList": [
            {
              "id": 12,
              "parentId": 12,
              "loginName": "GXZ8988",
              "type": null,
              "introduceCode": "SJZ8988",
              "password": null,
              "trueName": "桂小珍",
              "idCard": "320124",
              "gender": 1,
              "phone": "18362829879",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 1,
              "groupLevel": "MR",
              "selfAchievement": 6879,
              "groupAchievement": 6879,
              "depAchievement": 6879,
              "dealNum": 9900,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0,
              "rewardBalance": 0,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": 1,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "一星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            },
            {
              "id": 13,
              "parentId": 13,
              "loginName": "WX8988",
              "type": null,
              "introduceCode": "SJZ8988",
              "password": null,
              "trueName": "王霞",
              "idCard": "320124",
              "gender": 0,
              "phone": "18362823442",
              "isFreeze": 0,
              "isAlive": 1,
              "memberLevel": 1,
              "groupLevel": "PR",
              "selfAchievement": 0,
              "groupAchievement": 0,
              "depAchievement": 0,
              "dealNum": 4500,
              "dealNumCreate": 0,
              "registerTime": "2018-11-12 20:11:36",
              "updateTime": null,
              "bank": null,
              "bankNo": null,
              "openBank": null,
              "gainAddress": null,
              "reCastBalance": 0.22,
              "rewardBalance": 0.86,
              "usdtBalance": null,
              "aliveTime": null,
              "adminRoleId": null,
              "bwAccount": null,
              "bwBind": null,
              "rwAccount": null,
              "rwBind": null,
              "exchangeAccount": "1",
              "exchangeBind": null,
              "newPassword": null,
              "memberList": [],
              "parentMember": null,
              "memberLevelString": "一星会员",
              "isAliveString": "已激活",
              "isFreezeString": "未冻结",
              "pageNum": null,
              "pageSize": null,
              "offset": null,
              "loginTime": null,
              "code": null,
              "usdtPickUpAddress": null,
              "emailAddress": null,
              "lastSelfAchievement": null,
              "lastGroupAchievement": null,
              "lastDepAchievement": null
            }
          ],
          "parentMember": null,
          "memberLevelString": "三星会员",
          "isAliveString": "已激活",
          "isFreezeString": "未冻结",
          "pageNum": null,
          "pageSize": null,
          "offset": null,
          "loginTime": "2018-12-01 19:53:07",
          "code": null,
          "usdtPickUpAddress": null,
          "emailAddress": null,
          "lastSelfAchievement": null,
          "lastGroupAchievement": null,
          "lastDepAchievement": null
        },
        {
          "id": 121,
          "parentId": 121,
          "loginName": "zc",
          "type": null,
          "introduceCode": "admin",
          "password": null,
          "trueName": "zc",
          "idCard": "232132132313313",
          "gender": 0,
          "phone": "17705626980",
          "isFreeze": 0,
          "isAlive": 1,
          "memberLevel": 0,
          "groupLevel": null,
          "selfAchievement": 0,
          "groupAchievement": 0,
          "depAchievement": 0,
          "dealNum": 0,
          "dealNumCreate": 0,
          "registerTime": "2018-12-07 10:13:59",
          "updateTime": null,
          "bank": null,
          "bankNo": null,
          "openBank": null,
          "gainAddress": null,
          "reCastBalance": 0,
          "rewardBalance": 0,
          "usdtBalance": 0,
          "aliveTime": "2018-12-11 17:58:02",
          "adminRoleId": 0,
          "bwAccount": null,
          "bwBind": 0,
          "rwAccount": null,
          "rwBind": 0,
          "exchangeAccount": null,
          "exchangeBind": 0,
          "newPassword": null,
          "memberList": [],
          "parentMember": null,
          "memberLevelString": "普通会员",
          "isAliveString": "已激活",
          "isFreezeString": "未冻结",
          "pageNum": null,
          "pageSize": null,
          "offset": null,
          "loginTime": null,
          "code": null,
          "usdtPickUpAddress": null,
          "emailAddress": null,
          "lastSelfAchievement": null,
          "lastGroupAchievement": null,
          "lastDepAchievement": null
        }
      ],
      "parentMember": null,
      "memberLevelString": null,
      "isAliveString": null,
      "isFreezeString": null,
      "pageNum": null,
      "pageSize": null,
      "offset": null,
      "loginTime": "2018-12-13 11:19:56",
      "code": null,
      "usdtPickUpAddress": null,
      "emailAddress": null,
      "lastSelfAchievement": null,
      "lastGroupAchievement": null,
      "lastDepAchievement": null
    }]
    /*递归实现获取无级树数据并生成DOM结构*/
    var str = "";
    var forTree = function (o) {
      for (var i = 0; i < o.length; i++) {
        var urlstr = "";
        try {
          if (typeof o[i]["url"] == "undefined") {
            urlstr = "<div><span>" + o[i]["loginName"] + "</span><ul>";
          }
          str += urlstr;
          if (o[i]["memberList"] != null) {
            forTree(o[i]["memberList"]);
          }
          str += "</ul></div>";
        } catch (e) {
        }
      }
      return str;
    }
    /*添加无级树*/
    document.getElementById("menuTree").innerHTML = forTree(json);
    /*树形菜单*/
    var menuTree = function () {
      //给有子对象的元素加[+-]
      $("#menuTree ul").each(function (index, element) {
        var ulContent = $(element).html();
        var spanContent = $(element).siblings("span").html();
        if (ulContent) {
          $(element).siblings("span").html(" +  " + spanContent)
        }
      });
      $("#menuTree").find("div span").click(function () {
        var ul = $(this).siblings("ul");
        var spanStr = $(this).html();
        var spanContent = spanStr.substr(3, spanStr.length);
        if (ul.find("div").html() != null) {
          if (ul.css("display") == "none") {
            ul.show(300);
            $(this).html(" -  " + spanContent);
          } else {
            ul.hide(300);
            $(this).html(" +  " + spanContent);
          }
        }
      })
    }()

    layui.use('form', function () { })
    layui.use(['laypage', 'layer'], function () {
      var laypage = layui.laypage
        , layer = layui.layer;
      laypage.render({
        elem: 'demo3'
        , prev: '<em><</em>'
        , next: '<em>></em>'
        , count: 100
        , layout: ['limit', 'skip', 'prev', 'page', 'next']
        , jump: function (obj) {
          console.log(obj)
        }
      });
    })
    let index = 1;
    // function tree(className) {
    //   if (index > 4) { return }
    //   var ul = $('<ul></ul>');
    //   $(ul).css({ marginLeft: index + '20px' })
    //   var i = 0;
    //   while (i <= 3) {
    //     $(ul).append($('<li>' + index + '级<li>'))
    //   }
    //   $(className).append(ul)
    //   index++;
    //   return tree($(className).find('ul>li'))
    // }
    // tree()
    // function tree(treeLevel, data) {
    //   let index = 1;
    //   this.di = function (className) {
    //     var ul = $('<ul></ul>');
    //     $(ul).css({ marginLeft: index + '20px' })
    //     var i = 0;
    //     while (i <= 3) {
    //       $(ul).append($('<li>' + index + '级<li>'))
    //     }
    //     $(className).append(ul)
    //     if (index > 4) { return }
    //     index++;
    //     return this.di($(className).find('ul>li'))
    //   }
    // }
    // new tree(4, null).di('.button')
  </script>
</body>
</html>